home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / DemoDialogs / UDemoDialogs.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  17.6 KB  |  816 lines  |  [TEXT/MPS ]

  1. // UDemoDialogs.h
  2. // Copyright © 1988-96 by Apple Computer, Inc. All rights reserved. 
  3.  
  4. #ifndef __UDEMODIALOGS__
  5. #define __UDEMODIALOGS__
  6.  
  7. // MacApp
  8.  
  9. #ifndef __MACAPPTYPES__
  10. #include "MacAppTypes.h"
  11. #endif
  12.  
  13. #ifndef __UADORNERS__
  14. #include "UAdorners.h"
  15. #endif
  16.  
  17. #ifndef __UAPPLICATION__
  18. #include "UApplication.h"
  19. #endif
  20.  
  21. #ifndef __UBEHAVIOR__
  22. #include "UBehavior.h"
  23. #endif
  24.  
  25. #ifndef __UCOMMAND__
  26. #include "UCommand.h"
  27. #endif
  28.  
  29. #ifndef __UCCOMMANDHANDLER__
  30. #include "UCommandHandler.h"
  31. #endif
  32.  
  33. #ifndef __UCONTROL__
  34. #include "UControl.h"
  35. #endif
  36.  
  37. #ifndef __UDIALOG__
  38. #include "UDialog.h"
  39. #endif
  40.  
  41. #ifndef __UDOCUMENT__
  42. #include "UDocument.h"
  43. #endif
  44.  
  45. #ifndef __UEVENT__
  46. #include "UEvent.h"
  47. #endif
  48.  
  49. #ifndef __UEVENTHANDLER__
  50. #include "UEventHandler.h"
  51. #endif
  52.  
  53. #ifndef __UFAILURE__
  54. #include "UFailure.h"
  55. #endif
  56.  
  57. #ifndef __UFILE__
  58. #include "UFile.h"
  59. #endif
  60.  
  61. #ifndef __UGEOMETRY__
  62. #include "UGeometry.h"
  63. #endif
  64.  
  65. #ifndef __UGRIDVIEW__
  66. #include "UGridView.h"
  67. #endif
  68.  
  69. #ifndef __ULIST__
  70. #include "UList.h"
  71. #endif
  72.  
  73. #ifndef __UMACAPPGLOBALS__
  74. #include "UMacAppGlobals.h"
  75. #endif
  76.  
  77. #ifndef __UMACAPPUTILITIES__
  78. #include "UMacAppUtilities.h"
  79. #endif
  80.  
  81. #ifndef __UMENUMGR__
  82. #include "UMenuMgr.h"
  83. #endif
  84.  
  85. #ifndef __UOBJECT__
  86. #include "UObject.h"
  87. #endif
  88.  
  89. #ifndef __UPATCH__
  90. #include "UPatch.h"
  91. #endif
  92.  
  93. #ifndef __UPOPUP__
  94. #include "UPopup.h"
  95. #endif
  96.  
  97. #ifndef __UPRINTHANDLER__
  98. #include "UPrintHandler.h"
  99. #endif
  100.  
  101. #ifndef __UPRINTING__
  102. #include "UPrinting.h"
  103. #endif
  104.  
  105. #ifndef __USCROLLER__
  106. #include "UScroller.h"
  107. #endif
  108.  
  109. #ifndef __USTREAM__
  110. #include "UStream.h"
  111. #endif
  112.  
  113. #ifndef __UTEVIEW__
  114. #include "UTEView.h"
  115. #endif
  116.  
  117. #ifndef __UVIEW__
  118. #include "UView.h"
  119. #endif
  120.  
  121. #ifndef __UWINDOW__
  122. #include "UWindow.h"
  123. #endif
  124.  
  125. // Toolbox
  126.  
  127. #ifndef __ALIASES__
  128. #include <Aliases.h>
  129. #endif
  130.  
  131. #ifndef __APPLEEVENTS__
  132. #include <AppleEvents.h>
  133. #endif
  134.  
  135. #ifndef __BALLOONS__
  136. #include <Balloons.h>
  137. #endif
  138.  
  139. #ifndef __CONTROLS__
  140. #include <Controls.h>
  141. #endif
  142.  
  143. #ifndef __DIALOGS__
  144. #include <Dialogs.h>
  145. #endif
  146.  
  147. #ifndef __EDITIONS__
  148. #include <Editions.h>
  149. #endif
  150.  
  151. #ifndef __EVENTS__
  152. #include <Events.h>
  153. #endif
  154.  
  155. #ifndef __FILES__
  156. #include <Files.h>
  157. #endif
  158.  
  159. #ifndef __MEMORY__
  160. #include <Memory.h>
  161. #endif
  162.  
  163. #ifndef __MENUS__
  164. #include <Menus.h>
  165. #endif
  166.  
  167. #ifndef __OSUTILS__
  168. #include <OSUtils.h>
  169. #endif
  170.  
  171. #ifndef __QUICKDRAW__
  172. #include <Quickdraw.h>
  173. #endif
  174.  
  175. #ifndef __SCRAP__
  176. #include <Scrap.h>
  177. #endif
  178.  
  179. #ifndef __SCRIPT__
  180. #include <Script.h>
  181. #endif
  182.  
  183. #ifndef __STANDARDFILE__
  184. #include <StandardFile.h>
  185. #endif
  186.  
  187. #ifndef __TEXTEDIT__
  188. #include <TextEdit.h>
  189. #endif
  190.  
  191. #ifndef __TYPES__
  192. #include <Types.h>
  193. #endif
  194.  
  195. #ifndef __WINDOWS__
  196. #include <Windows.h>
  197. #endif
  198.  
  199.  
  200.  
  201. // Command numbers 
  202. const short cMakePicture = 1000;
  203.  
  204. const OSType kSignature = 'SS11';            // Application signature 
  205. const OSType kFileType = 'SF11';                // File-type code used for document files
  206.                                                           // created by this application
  207. const short kTestWindowID = 1001;            // This is passed to NewSimpleWindow as 
  208.                                                           // the resource ID of the the WIND Resource
  209.                                                         // which defines the window for this
  210.                                                          // application's documents
  211.  
  212. const short kMaxFonds = 100;                    // Max number of FONDs the FontList holds 
  213. const short kMaxSizes = 30;                    // Max number of Font sizes the SizeList holds
  214.  
  215. typedef enum
  216. {
  217.     noOperator, divOperator, mulOperator, subOperator, addOperator
  218. } CalcOperator;
  219.  
  220. typedef short FontList[kMaxFonds];            // FOND resource IDs 
  221. typedef FontList* FontListPtr;
  222.  
  223.  
  224. // CLASS DECLARATIONS
  225.  
  226. //----------------------------------------------------------------------------------------
  227. // class TTestApplication
  228. //----------------------------------------------------------------------------------------
  229.  
  230. class TTestApplication : public TApplication
  231. {
  232.     MA_DECLARE_CLASS;
  233.     
  234. public:
  235.  
  236.     MenuRef fMenuRef;
  237.  
  238.     virtual ~TTestApplication();
  239.         // Destructor
  240.     
  241.     virtual void ITestApplication();
  242.     // Initializes the application and globals. 
  243.  
  244.     virtual TDocument* DoMakeDocument(CommandNumber/*itsCommandNumber*/,
  245.                                                            TFile*            /*itsFile*/ );// override 
  246.     // Overridden to do nothing since we don't have a document 
  247.  
  248.     virtual void MakeProcedureViews(CommandNumber aCommandNumber);
  249.  
  250.     virtual void DoMenuCommand(CommandNumber aCommandNumber);// override 
  251.  
  252.     virtual void DoSetupMenus();            // override
  253.  
  254. protected:                                        // the procedures to do the views by procedures!!
  255.     virtual void MakeTemplateViews(CommandNumber aCommandNumber);
  256.  
  257.     virtual void MakeScrollingTest(CommandNumber aCommandNumber);
  258.  
  259.     virtual void MakeMonthlyDialog(CommandNumber aCommandNumber);
  260.  
  261.     virtual void MakeSaveDialog(    CommandNumber aCommandNumber);
  262.  
  263.     virtual void MakeModalBeepDialog(CommandNumber aCommandNumber);
  264.  
  265.     virtual void MakeDialog(CommandNumber aCommandNumber);
  266.  
  267.     virtual void MakeBalloonWindow(CommandNumber aCommandNumber);
  268.  
  269.     virtual void MakeFormatDialog(CommandNumber aCommandNumber);
  270.  
  271.     virtual void SetupTheFontView(TDialogView* theDialog);
  272.  
  273.     virtual void MakePageSetupDialog(CommandNumber aCommandNumber);
  274.  
  275.     virtual void MakeCalculator(CommandNumber aCommandNumber);
  276.  
  277.     virtual void MakeHomeBrewDialog(CommandNumber aCommandNumber);
  278. };
  279.  
  280.  
  281. //----------------------------------------------------------------------------------------
  282. // class TNumbersView
  283. //----------------------------------------------------------------------------------------
  284.  
  285. class TNumbersView : public TView
  286. {
  287.     MA_DECLARE_CLASS;
  288.     
  289. public:
  290.     virtual ~TNumbersView();
  291.         // Destructor
  292.  
  293.     virtual void ReadFields(TStream* aStream);// override 
  294.  
  295.     virtual void Draw(const VRect& area);
  296. };
  297.  
  298.  
  299. //----------------------------------------------------------------------------------------
  300. // class TNumberListView
  301. //----------------------------------------------------------------------------------------
  302.  
  303. class TNumberListView : public TTextListView
  304. {
  305.     MA_DECLARE_CLASS;
  306.     
  307. public:
  308.     
  309.     TNumberListView();
  310.     
  311.     virtual ~TNumberListView();
  312.         // Destructor
  313.     
  314.     virtual void DoPostCreate(TDocument* itsDocument);// override 
  315.  
  316.     virtual void BecameWindowTarget();    // override 
  317.  
  318.     virtual void ResignedWindowTarget();    // override 
  319.  
  320.     virtual void GetItemText(    short        anItem,
  321.                                                 CStr255&    aString);// override 
  322. };
  323.  
  324.  
  325. //----------------------------------------------------------------------------------------
  326. // class TMonthlyDialog
  327. //----------------------------------------------------------------------------------------
  328.  
  329. class TMonthlyDialog : public TDialogView
  330. {
  331.     MA_DECLARE_CLASS;
  332.     
  333. public:
  334.     virtual ~TMonthlyDialog();
  335.         // Destructor
  336.  
  337.     virtual void DoKeyEvent(TToolboxEvent* event);// override 
  338.  
  339.     virtual void Close();                // override 
  340.  
  341.     virtual void StuffValues();
  342.  
  343. };
  344.  
  345.  
  346. //----------------------------------------------------------------------------------------
  347. // class TModelessBeepDialog
  348. //----------------------------------------------------------------------------------------
  349.  
  350. class TModelessBeepDialog : public TDialogView
  351. {
  352.     MA_DECLARE_CLASS;
  353.     
  354. public:
  355.     virtual ~TModelessBeepDialog();
  356.         // Destructor
  357.     
  358.     virtual void DoEvent(EventNumber eventNumber,
  359.                          TEventHandler* source,
  360.                          TEvent* event);    // override 
  361.  
  362. };
  363.  
  364.  
  365. //----------------------------------------------------------------------------------------
  366. // class TFontListView
  367. //----------------------------------------------------------------------------------------
  368.  
  369. class TFontListView : public TTextListView
  370. {
  371.     MA_DECLARE_CLASS;
  372.     
  373. public:
  374.     FontListPtr fFontList;                        // font resource ids 
  375.  
  376.     virtual void DoPostCreate(TDocument* itsDocument);// override 
  377.  
  378.     virtual void InitFontList();
  379.     // Build an array of ids of font resources whose names are in alphabetical order 
  380.  
  381.     virtual ~TFontListView();                    // override 
  382.     // Make sure the font list gets freed 
  383.  
  384.     virtual void GetItemText(short        anItem,
  385.                                               CStr255&    aString);// override 
  386.  
  387.     virtual void SelectItem(short    anItem,
  388.                                              Boolean extendSelection,
  389.                                              Boolean highlight,
  390.                                              Boolean select);// override 
  391.  
  392. protected:
  393.     virtual short FondAfter(CStr255& fontName,
  394.                                              short    noOfFonds);
  395. };
  396.  
  397.  
  398. //----------------------------------------------------------------------------------------
  399. // class TSizeListView
  400. //----------------------------------------------------------------------------------------
  401.  
  402. class TSizeListView : public TTextListView
  403. {
  404.     MA_DECLARE_CLASS;
  405.     
  406. public:
  407.  
  408.     short fFontSizeList[kMaxSizes];
  409.     short fSelection;
  410.     short fSelectedSize;
  411.  
  412.     virtual ~TSizeListView();
  413.         // Destructor
  414.     
  415.     virtual void GetItemText(short anItem,
  416.                              CStr255& aString);// override 
  417.  
  418.     virtual void InstallFontFamily(short theFondID);
  419.  
  420.     virtual void SelectItem(short anItem,
  421.                             Boolean extendSelection,
  422.                             Boolean highlight,
  423.                             Boolean select);// override 
  424.  
  425.     virtual void SetNumberOfItems(short aNumber);
  426.  
  427. };
  428.  
  429.  
  430. //----------------------------------------------------------------------------------------
  431. // class TRadioIcon
  432. //----------------------------------------------------------------------------------------
  433.  
  434. class TRadioIcon : public TIcon
  435. {
  436.     MA_DECLARE_CLASS;
  437.     
  438. public:                                            // Used in the Page Setup dialog 
  439.     virtual ~TRadioIcon();
  440.         // Destructor
  441.  
  442.     virtual void TrackMouse(TrackPhase aTrackPhase,
  443.                             VPoint&    /*anchorPoint*/,
  444.                             VPoint&    /*previousPoint*/,
  445.                             VPoint&    /*nextPoint*/,
  446.                             Boolean    /*mouseDidMove*/);// override 
  447.  
  448. };
  449.  
  450.  
  451. //----------------------------------------------------------------------------------------
  452. // class TPageSetupDialog
  453. //----------------------------------------------------------------------------------------
  454.  
  455. class TPageSetupDialog : public TDialogView
  456. {
  457.     MA_DECLARE_CLASS;
  458.     
  459. public:
  460.  
  461.     VHSelect fOrientation;                        // Vertical or Horizontal printing orientation 
  462.     TCheckBox* fTallAdjusted;                    // Convenient reference to a subview 
  463.     TRadioIcon* fVerticalOrientation;            // Convenient reference to a subview 
  464.     TRadioIcon* fHorizontalOrientation;            // Convenient reference to a subview 
  465.  
  466.     TPageSetupDialog();
  467.         // Constructor
  468.     virtual ~TPageSetupDialog();
  469.         // Destructor
  470.  
  471.     virtual void DoEvent(EventNumber        eventNumber,
  472.                                          TEventHandler*    source,
  473.                                          TEvent*                event);    // override 
  474.  
  475.     virtual void DoPostCreate(TDocument* itsDocument);// override 
  476. };
  477.  
  478.  
  479. //----------------------------------------------------------------------------------------
  480. // class TArrowsControl
  481. //----------------------------------------------------------------------------------------
  482.  
  483. class TArrowsControl : public TPicture
  484. {
  485.     MA_DECLARE_CLASS;
  486.     
  487. public:
  488.     long fLastChange;                            // tick count of last call to DoChoice 
  489.  
  490.     TArrowsControl();            
  491.         // Constructor
  492.     virtual ~TArrowsControl();
  493.         // Destructor
  494.  
  495.     virtual void TrackMouse(TrackPhase aTrackPhase,
  496.                                              VPoint&        /*anchorPoint*/,
  497.                                              VPoint&        /*previousPoint*/,
  498.                                              VPoint&        nextPoint,
  499.                                              Boolean        /*mouseDidMove*/);// override 
  500.  
  501. };
  502.  
  503.  
  504. //----------------------------------------------------------------------------------------
  505. // class TSwallowBehavior
  506. //----------------------------------------------------------------------------------------
  507.  
  508. class TSwallowBehavior : public TBehavior
  509. {
  510.     MA_DECLARE_CLASS;
  511.     
  512. public:
  513.     virtual ~TSwallowBehavior();
  514.         // Destructor
  515.     
  516.     virtual Boolean DoToolboxEvent(TToolboxEvent* event);
  517. };
  518.  
  519.  
  520. //----------------------------------------------------------------------------------------
  521. // class TChangeBehavior
  522. //----------------------------------------------------------------------------------------
  523.  
  524. class TChangeBehavior : public TBehavior
  525. {
  526.     MA_DECLARE_CLASS;
  527.     
  528. public:
  529.     virtual ~TChangeBehavior();
  530.         // Destructor
  531.     
  532.     virtual void DoEvent(EventNumber eventNumber,
  533.                          TEventHandler* source,
  534.                          TEvent* event);    // override 
  535. };
  536.  
  537.  
  538. //----------------------------------------------------------------------------------------
  539. // class TUpdateBehavior
  540. //----------------------------------------------------------------------------------------
  541.  
  542. class TUpdateBehavior : public TBehavior
  543. {
  544.     MA_DECLARE_CLASS;
  545.     
  546. public:
  547.     virtual ~TUpdateBehavior();
  548.         // Destructor
  549.     
  550.     virtual void DoBehaviorUpdate(ChangeID theChange,
  551.                                   TObject* changedObject,
  552.                                   TObject* changedBy,
  553.                                   TDependencySpace* dependencySpace);/* override */
  554. };
  555.  
  556.  
  557. //----------------------------------------------------------------------------------------
  558. // class TTemperatureCluster
  559. //----------------------------------------------------------------------------------------
  560.  
  561. class TTemperatureCluster : public TCluster
  562. {
  563.     MA_DECLARE_CLASS;
  564.     
  565. public:
  566.     virtual ~TTemperatureCluster();
  567.         // Destructor
  568.  
  569.     virtual void DoEvent(EventNumber        eventNumber,
  570.                                          TEventHandler*    source,
  571.                                          TEvent*                event);    // override 
  572.  
  573.     virtual long GetValue();
  574.  
  575.     virtual void SetValue(long     newValue,
  576.                                           Boolean redraw);
  577.  
  578. };
  579.  
  580.  
  581. //----------------------------------------------------------------------------------------
  582. // class TTemperatureConversionCluster
  583. //----------------------------------------------------------------------------------------
  584.  
  585. class TTemperatureConversionCluster : public TCluster
  586. {
  587.     MA_DECLARE_CLASS;
  588.     
  589. public:
  590.     virtual ~TTemperatureConversionCluster();
  591.         // Destructor
  592.  
  593.     virtual void DoEvent(EventNumber        eventNumber,
  594.                                          TEventHandler*    source,
  595.                                          TEvent*                event);    // override 
  596.  
  597. };
  598.  
  599.  
  600. //----------------------------------------------------------------------------------------
  601. // class TSlider
  602. //----------------------------------------------------------------------------------------
  603.  
  604. class TSlider : public TPicture
  605. {
  606.     MA_DECLARE_CLASS;
  607.     
  608. public:
  609.  
  610.     short            fValue;
  611.     PicHandle    fKnobPicture;
  612.     CRect            fKnobRect;
  613.     short            fMinTop;
  614.     short            fMaxTop;
  615.  
  616.     TSlider();
  617.         // Constructor
  618.     virtual ~TSlider();
  619.         // Destructor
  620.  
  621.     virtual void DoPostCreate(TDocument* itsDocument);// override 
  622.  
  623.     virtual Boolean ContainsMouse(const VPoint& theMouse);// override 
  624.  
  625.     virtual void Draw(const VRect& area);// override 
  626.  
  627.     virtual void DrawKnob();
  628.  
  629.     virtual void GetKnobRect(CRect& knobRect);
  630.  
  631.     virtual void TrackMouse(TrackPhase    aTrackPhase,
  632.                                              VPoint&        anchorPoint,
  633.                                              VPoint&        previousPoint,
  634.                                              VPoint&        nextPoint,
  635.                                              Boolean        /*mouseDidMove*/);// override 
  636.  
  637. };
  638.  
  639.  
  640. //----------------------------------------------------------------------------------------
  641. // class TSumStaticText
  642. //----------------------------------------------------------------------------------------
  643.  
  644. class TSumStaticText : public TStaticText
  645. {
  646.     MA_DECLARE_CLASS;
  647.     
  648. public:
  649.     virtual ~TSumStaticText();
  650.         // Destructor
  651.  
  652.     virtual void Draw(const VRect& area);// override 
  653.  
  654. };
  655.  
  656.  
  657. //----------------------------------------------------------------------------------------
  658. // class TCalcDialog
  659. //----------------------------------------------------------------------------------------
  660.  
  661. class TCalcDialog : public TPicture
  662. {
  663.     MA_DECLARE_CLASS;
  664.     
  665. public:
  666.  
  667.     double            fSum;
  668.     double            fArgument;
  669.     CalcOperator    fOperator;
  670.     Boolean            fDecimalPoint;
  671.     Boolean            fRestart;
  672.  
  673.     virtual ~TCalcDialog();
  674.         // Destructor
  675.     
  676.     virtual void DoEvent(EventNumber        eventNumber,
  677.                                          TEventHandler*    source,
  678.                                          TEvent*                event);    // override 
  679.  
  680.     virtual void DoKeyEvent(TToolboxEvent* event); // override 
  681.  
  682.     virtual void ClearSum();
  683.  
  684.     virtual double FetchValue();
  685.  
  686.     virtual void SetValue();
  687.  
  688.     virtual void TotalSum(CalcOperator newOperator);
  689.  
  690.     virtual void NewDigit(char theNumber);
  691.  
  692. protected:
  693.     virtual void Truncate(CStr255& theStr);
  694.  
  695. };
  696.  
  697.  
  698. //----------------------------------------------------------------------------------------
  699. // class TAdornmentDemo
  700. //----------------------------------------------------------------------------------------
  701.  
  702. class TAdornmentDemo : public TView
  703. {
  704.     MA_DECLARE_CLASS;
  705.     
  706. public:
  707.     TView* fTestView;
  708.  
  709.     TAdornmentDemo();
  710.         // Constructor
  711.     virtual ~TAdornmentDemo();
  712.         // Destructor
  713.  
  714.     virtual void DoPostCreate(TDocument* itsDocument);// override 
  715.  
  716.     virtual void DoEvent(EventNumber        eventNumber,
  717.                                          TEventHandler*    source,
  718.                                          TEvent*                event);    // override 
  719. };
  720.  
  721.  
  722. //----------------------------------------------------------------------------------------
  723. // class TEmbossedFrame
  724. //----------------------------------------------------------------------------------------
  725.  
  726. class TEmbossedFrame : public TAdorner
  727. {
  728.     MA_DECLARE_CLASS;
  729.     
  730. public:
  731.     virtual ~TEmbossedFrame();
  732.         // Destructor
  733.     
  734.     virtual void Draw(TView*            itsView,
  735.                                      const VRect&    /*area*/);// override 
  736. };
  737.  
  738.  
  739. //----------------------------------------------------------------------------------------
  740. // class TGrayFill
  741. //----------------------------------------------------------------------------------------
  742.  
  743. class TGrayFill : public TAdorner
  744. {
  745.     MA_DECLARE_CLASS;
  746.     
  747. public:
  748.     virtual ~TGrayFill();
  749.         // Destructor
  750.     
  751.     virtual void Draw(TView*    itsView,
  752.                              const VRect&    /*area*/);// override 
  753. };
  754.  
  755.  
  756. //----------------------------------------------------------------------------------------
  757. // class TEtchedFrame
  758. //----------------------------------------------------------------------------------------
  759.  
  760. class TEtchedFrame : public TAdorner
  761. {
  762.     MA_DECLARE_CLASS;
  763.     
  764. public:
  765.     CPoint fInset;
  766.  
  767.     TEtchedFrame();
  768.         // Constructor
  769.     virtual ~TEtchedFrame();
  770.         // Destructor
  771.  
  772.     virtual void Draw(TView*            itsView,
  773.                                      const VRect&    /*area*/);// override 
  774. };
  775.  
  776.  
  777. //----------------------------------------------------------------------------------------
  778. // class TSlowScroller
  779. //----------------------------------------------------------------------------------------
  780.  
  781. class TSlowScroller : public TScroller
  782. {
  783.     MA_DECLARE_CLASS;
  784.     
  785. public:
  786.     TSlowScroller();
  787.         // Constructor
  788.     virtual ~TSlowScroller();
  789.         // Destructor
  790.  
  791.     virtual VCoordinate ScrollStep(VHSelect vhs, short partCode); // override
  792. };
  793.  
  794. //----------------------------------------------------------------------------------------
  795. // class TRoundView
  796. //----------------------------------------------------------------------------------------
  797.  
  798. class TRoundView : public TControl
  799. {
  800.     MA_DECLARE_CLASS;
  801.     
  802. public:
  803.     TRoundView();
  804.         // Constructor
  805.     virtual ~TRoundView();
  806.         // Destructor
  807.  
  808.     virtual void Draw(const VRect& area);
  809.         // Image it
  810.  
  811.     virtual void GetExtentRegion(RgnHandle itsExtentRgn); // override
  812. };
  813.  
  814.  
  815. #endif // __UDEMODIALOGS__
  816.